﻿using Prism;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Navigation;
using System;
using System.Collections.Generic;
using System.Linq;
using Xamarin.Forms;

namespace TangReadyV1.ViewModels
{
    public class PageUploadViewModel : ViewModelBase, IActiveAware
    {
        public INavigationService _navigationService;
        public PageUploadViewModel(INavigationService navigationService)
            : base(navigationService)
        {
            Title = "上传数据";
            
            _navigationService = navigationService;
        }
        public event EventHandler IsActiveChanged;

        private bool _isActive;
        public bool IsActive
        {
            get { return _isActive; }
            set { SetProperty(ref _isActive, value, RaiseIsActiveChanged); }
        }

        protected virtual void RaiseIsActiveChanged()
        {
            IsActiveChanged?.Invoke(this, EventArgs.Empty);
        }

    }
}
